export const menuConfig = [
    // 首页（所有角色共有）
    {
        name: "首页",
        path: "/home/main",
        icon: "el-icon-user",
        roles: ["admin", "doctor", "patient"]
      },
    
    // 个人信息管理（所有角色共有）
    {
      name: "个人信息管理",
      path: "/home/profile",
      icon: "el-icon-user",
      roles: ["admin", "doctor", "patient"]
    },
  
    // 用户管理（仅管理员）
    {
      name: "用户管理",
      icon: "el-icon-s-custom",
      roles: ["admin"],
      children: [
        {
          name: "用户",
          path: "/home/user-manage",
          roles: ["admin"]
        },
        {
          name: "医生",
          path: "/home/doctor-manage",
          roles: ["admin"]
        }
      ]
    },
  
    // 健康数据管理（所有角色共有）
    {
      name: "健康数据管理",
      icon: "el-icon-data-line",
      roles: ["admin", "doctor", "patient"],
      children: [
        {
          name: "日常数据上传",
          path: "/home/daily/upload",
          roles: ["admin", "doctor", "patient"]
        },
        {
          name: "日常数据分析",
          path: "/home/daily/analysis",
          roles: ["doctor", "patient"]
        },
        {
          name: "健康数据上传",
          path: "/home/health/upload",
          roles: ["admin", "doctor", "patient"]
        },
        {
          name: "健康数据分析",
          path: "/home/health/analysis",
          roles: [ "doctor", "patient"]
        }
      ]
    },  
    // 医生建议（管理员和患者）
    {
      name: "医生建议",
      icon: "el-icon-first-aid-kit",
      roles: ["admin", "patient"],
      children: [
        {
          name: "医疗记录表",
          path: "/home/medical-records-patient",
          roles: ["admin", "patient"]
        },
        {
          name: "咨询会话",
          path: "/home/consultation",
          roles: ["admin", "patient"]
        }
        ,
        {
          name: "医生列表",
          path: "/home/listDoctor",
          roles: ["admin", "patient"]
        }
      ]
    },
  
    // 用户交流（仅医生）
    {
      name: "用户交流",
      icon: "el-icon-chat-dot-round",
      roles: ["doctor"],
      children: [
        {
          name: "医疗记录",
          path: "/home/medical-records-doctor",
          roles: ["doctor"]
        },
        {
          name: "交流会话",
          path: "/home/communication",
          roles: ["doctor"]
        }
      ]
    }
  ];